/*
 * PortDefinition.java
 *
 * Created on August 31, 2006, 5:11 PM
 *
 * (C) 2006 R. Alexander Milowski
 */

package com.smallx.xproc;

import org.infoset.xml.Name;

/**
 *
 * @author alex
 */
public class PortDefinition {
   
   Name name;
   boolean allowSequence;
   Reference portRef;
   
   /** Creates a new instance of PortDefinition */
   public PortDefinition(Name name,boolean allowSequence) {
      this(name,allowSequence,null);
   }
   /** Creates a new instance of PortDefinition */
   public PortDefinition(Name name,boolean allowSequence,Reference ref) {
      this.name = name;
      this.allowSequence = allowSequence;
      this.portRef = ref;
   }

   public Name getName() {
      return name;
   }
   
   public boolean isSequenceAllowed() {
      return allowSequence;
   }
   
   public Reference getReference() {
      return portRef;
   }
}
